/**
 * 
 */
package com.worksmap.core.action.rate;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.worksmap.core.action.BaseController;
import com.worksmap.core.entity.Shop;
import com.worksmap.core.entity.TaoBaoSeller;
import com.worksmap.core.service.ShopService;
import com.worksmap.core.service.UserService;

/**
 * @author jack
 *
 */
@Controller
@RequestMapping("/shop")
public class ShopController extends BaseController {
	
	@Autowired
	ShopService shopService;
	@Autowired
	UserService userService;
	
	@RequestMapping(value = "", method = RequestMethod.GET)
	public Object rateAllOrder(HttpServletRequest request){
//		TaoBaoSeller seller = new TaoBaoSeller();
//		seller.setAccess_token(RateConstant.sessionKey);
		TaoBaoSeller seller = userService.getCurrentSeller(request);
		Shop shop = shopService.getShopInfo(seller);
		request.setAttribute("shop", shop);
		return "rate/userInfo";
	}
	
	

}
